﻿namespace factory;

public class ShapeFactory
{
    public Shape construct(int edges, double length)
    {
        if (edges <= 2)
        {
            Console.WriteLine("sorry, no such a Shape");
            return null;
        }
        Console.WriteLine("construted successfully!!");
        return new MultiShape(edges, length);
    }
}